import jdk.nashorn.internal.ir.CallNode;

import java.sql.*;

//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) throws ClassNotFoundException {
            //1.加载驱动
            try{
            Class.forName("com.mysql.cj.jdbc.Driver");



            //2.获取链接
            String url = "jdbc:mysql://127.0.0.1:3306/411526?characterEncoding=utf-8";
            Connection connection = DriverManager.getConnection(url, "root", "411526");
            //写入sql
            String sql = "select * from akedca";

            //
            PreparedStatement preparedStatement = connection.prepareStatement(sql);
            //
            ResultSet resultSet = preparedStatement.executeQuery();
            //
            while(resultSet.next()){
                int
            }
        } catch (SQLException ex) {
            throw new RuntimeException(ex);
        }

    }
    }